import { s } from "unocss-preset-weapp/dist/shared/unocss-preset-weapp.1ef43f5e";

export const TaskStatusMap = {
  0: "未发布",
  1: "已发布",
  2: "进行中",
  3: "已截止",
  4: "已完成",
  5: "已取消",
  10: "已拒绝",
  11: "已通过",
};

export const recruitmentStatus = {
  1: "招聘中",
  2: "停止招聘",
};

export const taskType = {
  1: "已回复",
  2: "已拒绝",
};

export const getPublisherActions = (payed: boolean, status: number) => {
  if (payed) {
    switch (status) {
      case 0:
        return ["支付费用", "取消"];
      case 1:
        return ["取消"];
      case 3:
        return ["聊天", "接受", "拒绝"];
    }
  } else {
    return [ "支付费用", "取消"];
  }
};
